class UrlMappings {

	static mappings = {	
		"/donors/$id" (controller: "donorRest") {

			action = [GET: "show"]	 
		}
		"/teachers/$id" (controller: "teaherRest") {
			
						action = [GET: "show"]
					}		
		
		"/$controller/$action?/$id?"{
			constraints {
				// apply constraints here
			}
		}

		"/login/$action?"(controller: "login") 
		"/logout/$action?"(controller: "logout")
				
		"/"(view:"/index")
		"500"(view:'/error')
	}
}
